package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.MomentsService;
import com.it.park.dao.MomentsMapper;
import com.it.park.model.Moments;

@Service("momentsService")
public class MomentsServiceImpl extends BaseServiceImpl<Moments> implements MomentsService {
	
	@Autowired
	private  MomentsMapper  momentsMapper;

	@Override
	public boolean insert( Moments moments) {
		return momentsMapper.insert(moments)==1 ;
	}
	@Override
	public List<Moments> list(Integer userId) {
		return momentsMapper.list(userId);
	}
	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return momentsMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(Moments record) {
		return momentsMapper.insertSelective(record)==1;
	}
	@Override
	public Moments selectByPrimaryKey(Integer id) {
		return momentsMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(Moments record) {
		return momentsMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(Moments record) {
		return momentsMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public List<Moments> selectByLimit() {
		return momentsMapper.selectByLimit();
	}
	@Override
	public boolean updateByPrimaryKeyWithBLOBs(Moments record) {
		return false;
	}
	@Override
	public List<Moments> selectAll() {
		return momentsMapper.selectAll();
	}
	@Override
	public List<Moments> selectPagination(Map<String, Object> map) {
		return momentsMapper.selectPagination(map);
	}
	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return momentsMapper.selectTotal(map);
	}
	@Override
	public List<Moments> selectByUserId(Map<String, Object> map) {
		return momentsMapper.selectByUserId(map);
	}
	@Override
	public List<Moments> selectPagination(Moments t) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer selectTotal(Moments t) {
		// TODO Auto-generated method stub
		return null;
	}
	

}
